package com.yangkunhong.config;

import lombok.Data;

/**
 * ClassName: DbConfig
 * Description:
 *
 * @author yangkunhong
 * @date 2024/6/25 9:54
 */
@Data
public class DbConfig {
    private String driver ="jdbc:mysql://localhost:3357/javaweb200 ";
    private String url ="jdbc:mysql://localhost:3357/javaweb200 ";
    private String username ="root";
    private String password = "password";
    private Integer initialSize = 10;
    private Integer  maxActive = 20;
    private Integer  maxWait = 1000;
    private Integer  minIdle = 5;
    private static final DbConfig DB_CONFIG = new DbConfig();
    private DbConfig() {
    }
    public static DbConfig getInstance() {
        return DB_CONFIG;
    }
}
